﻿@model CloudFranceTriple.Models.ForumSecuritySet

@{
    ViewBag.Title = String.Format("{0} - {1}", ViewBag.LabelForum, CloudFranceTriple.WebRole.Properties.Resources.ForumSecurityEditTitle);
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="content-padding">
    <h1>@ViewBag.LabelForum - @CloudFranceTriple.WebRole.Properties.Resources.ForumSecurityEditTitle</h1>
    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)

        <fieldset>
            <legend>@ViewBag.LabelForum - @CloudFranceTriple.WebRole.Properties.Resources.ForumSecurityEditTitle</legend>

            @Html.Hidden("ForumSet_Id")

            <div class="editor-label">
                @CloudFranceTriple.WebRole.Properties.Resources.SecurityRoleName
            </div>
            <div class="editor-field">
                @Html.DropDownList("webpages_Roles_RoleId", String.Empty)
                @Html.ValidationMessageFor(model => model.webpages_Roles_RoleId)
            </div>
            <br />
            <div class="editor-label">
                @CloudFranceTriple.WebRole.Properties.Resources.SecurityRightLevel
            </div>
            <div class="editor-field">
                @Html.ListBox("RightLevel")
                @Html.ValidationMessageFor(model => model.RightLevel)
            </div>
            <p>
                <input type="submit" value="@CloudFranceTriple.WebRole.Properties.Resources.ButtonSave" />
            </p>
        </fieldset>
    }
    @Html.Partial("_BackToForumSecurityList")
    @section Scripts {
        @Scripts.Render("~/bundles/jqueryval")
    }
</div>
